<style type="text/css">
    .rainbowPhotoFrameActionBtn {
    }
</style>
<div style="margin-top:2%;padding:5px;">
    {% if user == photo_instance.user and user.is_authenticated %}
        {% if photo_instance.scope == 2 and photo_instance.status == 2 %}
        <label>图片内容审核中</label>
        {% else %}
            <label class="rainbowPhotoFrameActionBtn blueBtn">
                <a href="/rainbow/photoframe/{{ photo_instance.id }}/edit">
                    编辑
                </a>
            </label>
            <label class="rainbowPhotoFrameActionBtn blueBtn">
                <a href="/rainbow/photoframe/{{ photo_instance.id }}/share">
                    分享
                </a>
            </label>
        {% endif %}
        <label class="rainbowPhotoFrameActionBtn redBtn" style="float:right;">
            <a href="/rainbow/photoframe/{{ photo_instance.id }}/delete">
                删除
            </a>
        </label>
    {% else %}
        <a href="/rainbow/photoframe/{{ photo_instance.id }}/good">
            <label class="rainbowPhotoFrameActionBtn">赞</label>
        </a>
        <a href="/rainbow/photoframe/{{ photo_instance.id }}/collect">
            <label class="rainbowPhotoFrameActionBtn">收藏</label>
        </a>
    {% endif %}
</div>